package org.dromara.demo.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 测试主从对象 test_demo2_line
 */
@Data
@TableName("test_demo2_line")
public class TestDemo2Line {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 父主键
   */
  private Long id;

  /**
   * 子主键
   */
  @TableId(value = "line_id")
  private Long lineId;

  /**
   * 名称
   */
  private String name;

  /**
   * 编码
   */
  private String code;

}
